home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SuperHack
/
SuperHack CD.bin
/
CODING
/
CPP
/
SETTIME.ZIP
/
README.1ST
< prev
next >
Wrap
Text File
|
1996-03-07
|
2KB
|
36 lines
Here is some minimal documentation for SetTime, the freeware NTP client
written as a straightforward example of Visual C++, MFC, Windows and WinSock
programming.
There is really only one item that needs to be checked, and it applies only
to those few individuals that *need* to have a TZ (timezone) variable defined,
for whatever purpose.
Namely, if you have a TZ variable defined in your Win95 or NT 3.51
environment, make sure it is correctly defined.
For example, if you're on daylight savings time, ensure that fact is
represented in the TZ variable. Here in Calgary, my TZ variable is set thusly:
SET TZ=MST7MDT to reflect that we're 7 hours behind GMT, or 8 hours behind
during periods of daylight savings time.
The vast majority of users do not explicitly set a TZ variable,
choosing instead to let Win95 or NT manage the timezone as part of the
Control Panel's Time and Date applet.
This suits me as SetTime does not perform any timezone calculations. Rather,
it reads back the local time, corrected for timezone, from the operating
system. This works great except for those hosers that have over-riden their
localtime by incorrectly defining a TZ variable.
So, make sure your localtime is correctly set, either by allowing the
operating system to manage it, or ensuring your TZ variable, if you have one,
is correct.
I would welcome any questions from budding Windows programmers on the methods
used in this simple program. Just drop a line to pinter@p-squared.com.
Welcome to the wonderful world of Microsoft Foundation Classes...
/p2